<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="b" uri="/bbs-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'boardDisplay.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<!--[if lt IE 7]> 
	<script type="text/javascript" src="js/ie6png.js"></script>
	<![endif]-->
		<link rel="stylesheet" type="text/css" href="css/boardDisplay.css">
		<link rel="stylesheet" type="text/css" href="css/header.css">
		<link rel="stylesheet" type="text/css" href="css/pageStyleOne.css">
		<link rel="stylesheet" type="text/css" href="css/footer.css">
		<script type="text/javascript" src="js/parseIcon.js">
</script>
		<script type="text/javascript" src="js/jquery.js">
</script>
	</head>

	<body onload="parseIcon()">
		<div id="container">
			<%@ include file="styleJsp/header.jsp"%>
			<div id="headerBottom">
				<div id="headerBottomLeft">
					<span class="headerBottomLeft1"><a href="index"><img
								src="images/home_icon.png" /> </a> </span>
					<span class="headerBottomLeft2"><img
							src="images/dot_arrow.png"> </span>
					<span class="headerBottomLeft3"><a href="index">论坛</a> </span>
					<span class="headerBottomLeft2"><img
							src="images/dot_arrow.png"> </span>
					<span class="headerBottomLeft3"><a
						href="boardDisplayAction_lookOnlyBoardDetails?boardId=<s:property value='board.boardId'/>"><s:property
								value="board.boardName" /> </a> </span>
				</div>
				<div id="headerBottomRight">
					<span class="headerBottomRight1"> <span
						class="headerBottomRight1-1"><a href="#">搜索本版 </a> </span> <span
						class="headerBottomRight1-2"></span> </span>
					<span class="headerBottomRight2"><input
							style="border: inset 1px #CCC; height: 25px;" /> </span>
					<span class="headerBottomRight3"><a href="#">搜索</a> </span>
				</div>
			</div>

			<!-- 中部 -->
			<div id="content">
				<div id="contentTop">
					<div id="contentTop0">
						<div id="contentTop0-1">
							<div id="contentTop0-1-1">
								<s:property value="board.boardName" />
							</div>
							<div id="contentTop0-1-2">
								<span id="contentTop0-1-2-1">版主：</span>
								<span id="contentTop0-1-2-2"><s:iterator
										value="board.boardMaster">
										<a
											href="blogIndex.jsp?userId=<s:property value='user.userId' />"><s:property
												value="user.userName" /> </a>
									</s:iterator> </span>
							</div>
						</div>
						<div id="contentTop0-2">
							<span id="contentTop0-2-1">今日：</span>
							<span id="contentTop0-2-2"><s:property value="todayNum" />
							</span>
						</div>
						<div id="contentTop0-3">
							<span id="contentTop0-3-1">主题：</span>
							<span id="contentTop0-3-2"><s:property value="postNum" />
							</span>
						</div>
						<br />
					</div>
				</div>
				<div id="contentCenterTop">
					<div id="contentCenterTop1">
						<a
							href="getRightListAction_getPostRightList?boardId=<s:property value='board.boardId'/>"><img
								src="images/post_btn.png" /> </a>
					</div>
					<div id="contentCenterTop2">
						${pagination}
					</div>
				</div>
				<div id="contentCenter">
					<div id="contentCenter1">
						<div class="contentCenter1-1">
							筛选：
						</div>
						<div class="contentCenter1-2">
							<span class="contentCenter1-2-1"><a href="#">全部主题</a> </span>
							<span class="contentCenter1-2-2"></span>
						</div>
						<div class="contentCenter1-2">
							<span class="contentCenter1-2-1"><a href="#">全部时间</a> </span>
							<span class="contentCenter1-2-2"></span>
						</div>
						<span class="contentCenter1-0">|</span>
						<div class="contentCenter1-1">
							排序：
						</div>
						<div class="contentCenter1-2">
							<span class="contentCenter1-2-1"><a href="#">最后发表</a> </span>
							<span class="contentCenter1-2-2"></span>
						</div>
						<span class="contentCenter1-0">|</span>
						<div class="contentCenter1-3">
							<a href="#">精华</a>
						</div>
						<span class="contentCenter1-0">|</span>
						<div class="contentCenter1-3">
							<a href="#">推荐</a>
						</div>
						<div class="contentCenter1-4">
							作者
						</div>
						<div class="contentCenter1-5">
							回复/查看
						</div>
						<div class="contentCenter1-6">
							最后发表
						</div>
					</div>
					<s:iterator value="list" status="st">
						<div class="contentCenter2">
							<div class="contentCenter2-1">
								<span class="contentCenter2-1-0"> <span
									class="contentCenter2-1-0-1"> <b:postIcon type="1"
											state="${postTheme}" /> </span> <span class="contentCenter2-1-0-2"><a
										href="viewPostAction?postId=<s:property value='postId'/>&pageNo=1">
											<s:property value="postName" /> </a> </span><span
									class="contentCenter2-1-0-3"> <b:postIcon type="2"
											state="${postState}" /> </span> <span class="contentCenter2-1-0-4">
										<!-- 分页小标签 --> <b:pageing pageSize="10"
											url="viewPostAction?postId=${postId}"
											allCount="${postReply+1}" /> </span> </span>
								<span class="contentCenter2-1-1"> <span
									class="contentCenter2-1-1-1"><a
										href="blogIndex.jsp?userId=<s:property value='user.userId' />"><s:property
												value="user.userName" /> </a> </span> <span
									class="contentCenter2-1-1-2"><s:property
											value="postDate.toString().substring(0, 10)" /> </span> </span>
								<span class="contentCenter2-1-2"> <span
									class="contentCenter2-1-2-1"><s:property
											value="postReply" /> </span> <span class="contentCenter2-1-2-2"><s:property
											value="postClick" /> </span> </span>
								<span class="contentCenter2-1-3">
								<s:if test="%{posts.size()>0}">
								<span
									class="contentCenter2-1-3-1"><s:property value='posts.get(posts.size()-1).user.userName'/></span> <span
									class="contentCenter2-1-3-2"><s:property value='posts.get(posts.size()-1).postDate.toString().substring(0, 16)'/></span>
								</s:if>	
								</span>
							</div>
						</div>

						<s:if
							test="spiltNum==(#st.index+(pageNo-1)*15+1)&&(spiltNum<list.size())">
							<!-- 分割线的样式 -->
							<div id="contentCenter3">
								<span id="contentCenter3-1">板块主题</span>
							</div>
						</s:if>
					</s:iterator>


				</div>
				<div id="contentCenterTop">
					<div id="contentCenterTop1">
						<a
							href="getRightListAction_getPostRightList?boardId=<s:property value='board.boardId'/>"><img
								src="images/post_btn.png" /> </a>
					</div>
					<div id="contentCenterTop2">
						${pagination}
					</div>
				</div>
				<div id="post_edit">
					<form action="publishPostAction" method="post">
						<div id="post_Title">
							<span id="post_Title1">快速发帖</span>
						</div>
						<input type="hidden" name="boardId"
							value="<s:property value='board.boardId'/>">
						<div id="post_Title2">
							<div id="post_Title2-1">
								<select style="width: 105px; height: 25px;" name="postTheme">
									<option>
										选择主题分类
									</option>
									<option value="0">
										普通帖
									</option>
									<option value="1">
										投票贴
									</option>
								</select>
							</div>
							<div id="post_Title2-2">
								<input name="postTitle"
									style="width: 360px; height: 25px; text-align: left;" />
							</div>
						</div>
						<!-- 编辑框 -->
						<div
							style="float: left; margin: 10px 0px 0px 10px; display: inline;">
							<b:editTable height="130" width="930" />
						</div>
						<input id="post_btn" type="image" src="images/post_btn1.jpg">
					</form>
				</div>

			</div>
			<%@ include file="styleJsp/footer.jsp"%>
		</div>
	</body>
</html>
